<?php

namespace App\Repositories\Eloquent\Lst;

use Illuminate\Container\Container as App;
use App\Repositories\Eloquent\Repository;

class DetailRepository extends Repository
{

    protected $user, $term;

    public function __construct(App $app)
    {
        parent::__construct($app);
    }

    /**
     * 指定模型名称
     *
     * @return mixed
     */
    function model()
    {
        return 'App\Models\Lst\Detail';
    }

    /**
     * Display the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function show($id)
    {
        $detail = $this->find($id);

        if (!$detail) {
            return $this->responseFail(404);
        }

        return $detail;
    }


    /**
     * Remove the specified resource from storage.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function destroy($id)
    {
        //
    }


}